/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ihmproject.menuoutils;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.ihmproject.treewindow.FenetreArbreTopComponent;
import org.openide.windows.Mode;
import org.openide.windows.WindowManager;

public final class ReorganiserAuto implements ActionListener {

    public void actionPerformed(ActionEvent e) {
        Mode mod = WindowManager.getDefault().findMode(FenetreArbreTopComponent.findInstance());
        FenetreArbreTopComponent fatc = (FenetreArbreTopComponent) mod.getSelectedTopComponent();
        fatc.scene.layoutScene();
    }
}
